From: Julien Grall Date: Mon, 17 Mar 2014 14:05:53 +0000 (+0000) Subject: xen/arm: Correctly define size_t X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~5375 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/?a=commitdiff_plain;h=be5d66adb4bf2fc750e910cfa9b14b0701eae5fc;p=xen.git xen/arm: Correctly define size_t Flask code use %zu to print size_t variable. On ARM, size_t always defined to unsigned long which make ARM build failed. Fix it by using __SIZE_TYPE__. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/include/asm-arm/types.h b/xen/include/asm-arm/types.h index 6875a620a2..183f3e0733 100644 --- a/xen/include/asm-arm/types.h +++ b/xen/include/asm-arm/types.h @@ -55,7 +55,11 @@ typedef u64 register_t; #define PRIregister "lx" #endif +#if defined(__SIZE_TYPE__) +typedef __SIZE_TYPE__ size_t; +#else typedef unsigned long size_t; +#endif typedef char bool_t; #define test_and_set_bool(b) xchg(&(b), 1)